<script setup lang="ts">
import Child1 from '@/components/piniaExample/ChildOneComponent.vue'
import Child2 from '@/components/piniaExample/ChildTwoComponent.vue'
</script>

<template>
  <div>pinia核心概念：state、actions、getters</div>
  <div>写法分为：选择器API、组合式API</div>

  <div style="background: #eee; padding: 20px">
    <Child1 />
    <Child2 />
  </div>
  <hr />
</template>

<style scoped></style>
